package com.qf.zsq.service.impl;

import com.qf.entity.CustomerEntity;
import com.qf.mapper.CustomerMapper;
import com.qf.pojo.CustomerPojo;
import com.qf.zsq.service.ICustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl implements ICustomerService {

    @Autowired
    CustomerMapper customerMapper;

    @Override
    public CustomerPojo login(String cname,String cpass) {

        return customerMapper.login(cname,cpass);
    }

    /**
     * @Description: 注册
     * @Param:
     * @return:
     */
    @Override
    public boolean register(CustomerEntity ce) {
        return customerMapper.register(ce);
    }

    @Override
    public CustomerPojo selectCustomer(Integer cid) {
        return customerMapper.selectCustomer(cid);
    }

}
